package blogsys.demo.bean;

import org.apache.ibatis.type.Alias;

import java.io.Serializable;
import java.util.Date;

/**
 * 用户角色
 *
 * 一名用户只有一个角色
 */
@Alias("UserRole")
public class UserRole implements Serializable {
    private int userRoleId;
    private String userRoleUserId;
    private String userRoleRoleId;
    private Date userRoleCreateDate;

    public UserRole() {
    }

    public UserRole(int userRoleId, String userRoleUserId, String userRoleRoleId, Date userRoleCreateDate) {
        this.userRoleId = userRoleId;
        this.userRoleUserId = userRoleUserId;
        this.userRoleRoleId = userRoleRoleId;
        this.userRoleCreateDate = userRoleCreateDate;
    }

    public int getUserRoleId() {
        return userRoleId;
    }

    public void setUserRoleId(int userRoleId) {
        this.userRoleId = userRoleId;
    }

    public String getUserRoleUserId() {
        return userRoleUserId;
    }

    public void setUserRoleUserId(String userRoleUserId) {
        this.userRoleUserId = userRoleUserId;
    }

    public String getUserRoleRoleId() {
        return userRoleRoleId;
    }

    public void setUserRoleRoleId(String userRoleRoleId) {
        this.userRoleRoleId = userRoleRoleId;
    }

    public Date getUserRoleCreateDate() {
        return userRoleCreateDate;
    }

    public void setUserRoleCreateDate(Date userRoleCreateDate) {
        this.userRoleCreateDate = userRoleCreateDate;
    }

    @Override
    public String toString() {
        return "UserRole{" +
                "userRoleId='" + userRoleId + '\'' +
                ", userRoleUserId='" + userRoleUserId + '\'' +
                ", userRoleRoleId='" + userRoleRoleId + '\'' +
                ", userRoleCreateDate=" + userRoleCreateDate +
                '}';
    }
}
